<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class Unit1 extends Page
{
       public $hiddenUser = null;
       function Unit1Create($sender, $params)
       {
       $user=$_GET['user'];
       $this->hiddenUser->setValue($user);

       $result = mysql_query("delete from accounts_tbl where auto_id='".$this->hiddenUser->getValue()."'");

       redirect('user_list.php?company_id='.$_SESSION['company_id']);


       }

}

global $application;

global $Unit1;

//Creates the form
$Unit1=new Unit1($application);

//Read from resource file
$Unit1->loadResource(__FILE__);

//Shows the form
$Unit1->show();

?>